package com.platform.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.platform.annotation.Authentication;
import com.platform.base.BaseServiceImpl;
import com.platform.base.mvc.IBaseMapper;
import com.platform.dao.SysAreaDAO;
import com.platform.dto.SysAreaDTO;
import com.platform.service.SysAreaService;

/**
 * 地区表
 * 
 * @author platform
 * @email 15909910367@163.com
 * @date 2022-11-09 20:51:06
 */
@Service
public class SysAreaServiceImpl extends BaseServiceImpl<SysAreaDTO> implements SysAreaService {
	@Autowired
	private SysAreaDAO sysAreaDAO;

	@Override
	public IBaseMapper<SysAreaDTO> getMapper() {
		return sysAreaDAO;
	}
	
	@Override
	@Authentication
	public List<SysAreaDTO> queryAreaTreeByLazy(Object node){
		node=node.equals("root")?null:node;
		return sysAreaDAO.queryAreaTreeByLazy(node);
	}
}
